package com.question.view.command.play;

import com.question.entity.User;
import com.question.utils.InputOutUtils;
import com.question.view.Application;

public class LogoutCommand extends PlayerSuper{

	@Override
	protected void exec(User player) {
		InputOutUtils.print("是否确定退出");
		String inVal = InputOutUtils.inputString("Y/N:", false);
		if("Y".equalsIgnoreCase(inVal)) {
			Application.setUser(null);
			 InputOutUtils.print("退出成功");
		};
	}

}
